package com.zhu.controller;

import com.zhu.pojo.SystemData;
import com.zhu.utils.SystemUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system")
public class SystemController {

    @RequestMapping("/server")
    public SystemData getInfo() {
        SystemData info = SystemUtils.getSystemInfo();
        return info;
    }

}
